package com.cjm.one.goods.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjm.one.model.goods.dto.GoodsCommentDto;
import com.cjm.one.model.goods.entity.GoodsComment;
import com.cjm.one.model.goods.entity.GoodsCommentTag;
import com.cjm.one.model.goods.vo.GoodsCommentCountVo;
import com.cjm.one.model.goods.vo.GoodsCommentTagVo;
import com.cjm.one.model.goods.vo.GoodsCommentVo;

import java.util.List;

/**
* @author 29289
* @description 针对表【goods_comment】的数据库操作Service
* @createDate 2024-09-05 16:07:00
*/
public interface GoodsCommentService extends IService<GoodsComment> {

    Page<GoodsComment> findList(Long current, Long size, Long userId, String text, Long goodsId);

    GoodsCommentVo getCommentById(Long id);


    GoodsCommentCountVo getCommentTagById(Long id);

    Page<GoodsCommentVo> getCommentPage(Page<GoodsCommentVo> objectPage, Long goodsId, String sortOrder, List<Long> tagIds);

    List<GoodsCommentTag> getTags();

    Boolean saveGoodsComment(List<GoodsCommentDto>  goodsCommentDto);
}
